package com.zj.service;

import com.zj.web.bean.BannerDTO;

import java.util.List;

public interface BannerService {
    /**
     * 轮播图正常显示
     */
    public static final Integer BANNER_STATUS_NORMAL = 1;
    /**
     * 轮播图不显示
     */
    public static final Integer BANNER_STATUS_DISABLE = 0;
    /**
     * 添加banner
     * @param bannerDTO
     * @return
     */
    BannerDTO addBanner(BannerDTO bannerDTO);
    /**
     * 根据banner状态查询banner列表
     * @return
     */
    //根据状态信息查询轮播图
    public List<BannerDTO> getBannersByStatus(Integer bannerStatus);

    //修改轮播图的状态
    public BannerDTO updateBannerStatus(Long bannerId, Integer bannerStatus);
}
